package com.mdh.runerrands.dao;

import com.mdh.runerrands.pojo.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDao {
    List<Order> selectAll();
    boolean deleteById(int id);
    Order selectById(int id);
    List<Order> query(Integer customerId,Integer waiterId,String status);
    boolean update(Order order);
    boolean batchDelete(int ...ids);
    boolean updateByIdAndWaiterId(int id,int waiterId);
    List<Order> queryPage(Integer page,Integer pageSize,Long orderTime,Integer total,String status,Integer customerId,Integer waiterId ,Integer id);
    int selectCount(Long orderTime,Integer total,String status,Integer customerId,Integer waiterId,Integer id );
    boolean updateTakeOrder(int id,String status);
    boolean insert(Order order);
    Order selectByTime(Long time);
    boolean updateRemark(int orderId,String remark);
    boolean updateStatus(Integer orderId);
}
